import React from "react";
import "./app.scss";
import TopProvider from "./uses/useTopView";
import GreetProvider from "./uses/useCoutryDataContext";
import LoginProvider from "./uses/useLogin";


const App = (props) => {

  // this.props.children 是将要会渲染的页面
  return <LoginProvider>
    <TopProvider>
      <GreetProvider>
        {props.children}
      </GreetProvider>
    </TopProvider>
  </LoginProvider>;
}

export default App;
